gtk4.git
11 years agoinspector: Add a visual tab
Matthias Clasen [Sun, 11 May 2014 01:19:21 +0000 (21:19 -0400)]
inspector: Add a visual tab

Move the show updates and flip text direction controls here,
and add controls for baseline and pixel cache debugging.

11 years agoAdd data-list.ui to list of templates
Matthias Clasen [Sun, 11 May 2014 00:25:47 +0000 (20:25 -0400)]
Add data-list.ui to list of templates

11 years agoMake the inspector available via GTK_DEBUG
Matthias Clasen [Sat, 10 May 2014 17:22:17 +0000 (13:22 -0400)]
Make the inspector available via GTK_DEBUG

Change things around so GTK_DEBUG=interactive also brings
up the inspector window.

11 years agoinspector: Add minimal signal tracing
Matthias Clasen [Sat, 10 May 2014 14:40:38 +0000 (10:40 -0400)]
inspector: Add minimal signal tracing

Add rudimentary signal tracing. The signals tab can now count signal
emissions for all signals of the current object.

11 years agoinspector: clean up better when objects go away
Matthias Clasen [Sat, 10 May 2014 16:26:22 +0000 (12:26 -0400)]
inspector: clean up better when objects go away

Instead of manually doing it everywhere, just call set_object (NULL)
from the selection_changed handler. Fix all the set_object() functions
to deal with NULL.

11 years agoinspector: Improve the Inspect tooltip
Matthias Clasen [Sat, 10 May 2014 14:52:29 +0000 (10:52 -0400)]
inspector: Improve the Inspect tooltip

11 years agoinspector: Add a button for rtl flipping
Matthias Clasen [Sat, 10 May 2014 14:40:55 +0000 (10:40 -0400)]
inspector: Add a button for rtl flipping

Nice to have a quick way of testing this everywhere.

The implementation is not quite perfect: due to the way text
direction works in GTK+, widgets that appear in the inspector
window while we are flipped will inherit the flipped direction
instead of the fixed direction of the inspector window.

11 years agoinspector: Add a minimal Data tab
Matthias Clasen [Sat, 10 May 2014 04:50:21 +0000 (00:50 -0400)]
inspector: Add a minimal Data tab

This will eventually show useful information about the content
of tree models.

11 years agoinspector: Hide tabs instead of making them insensitive
Matthias Clasen [Sat, 10 May 2014 03:57:57 +0000 (23:57 -0400)]
inspector: Hide tabs instead of making them insensitive

11 years agoinspector: Make button path non-homogeneous
Matthias Clasen [Sat, 10 May 2014 14:39:31 +0000 (10:39 -0400)]
inspector: Make button path non-homogeneous

11 years agoinspector: Avoid size changes of button path
Matthias Clasen [Sat, 10 May 2014 03:57:38 +0000 (23:57 -0400)]
inspector: Avoid size changes of button path

11 years agoinspector: Reorder tabs
Matthias Clasen [Sat, 10 May 2014 03:20:03 +0000 (23:20 -0400)]
inspector: Reorder tabs

11 years agoinspector: Move scrolledwindow into prop list template
Matthias Clasen [Sat, 10 May 2014 03:15:34 +0000 (23:15 -0400)]
inspector: Move scrolledwindow into prop list template

11 years agoinspector: Avoid a double scrolled window
Matthias Clasen [Sat, 10 May 2014 03:06:35 +0000 (23:06 -0400)]
inspector: Avoid a double scrolled window

11 years agoinspector: Make notebook scrollable
Matthias Clasen [Sat, 10 May 2014 02:52:37 +0000 (22:52 -0400)]
inspector: Make notebook scrollable

11 years agoinspector: Add models to the tree
Matthias Clasen [Sat, 10 May 2014 02:49:31 +0000 (22:49 -0400)]
inspector: Add models to the tree

It makes sense to add the models of tree views, icon views
and combo boxes to the tree.

11 years agoinspector: Make value ellipsized
Matthias Clasen [Sat, 10 May 2014 02:48:34 +0000 (22:48 -0400)]
inspector: Make value ellipsized

The values can get long, so ellipsize them.

11 years agoinspector: Add cell areas into the tree
Matthias Clasen [Sat, 10 May 2014 02:28:45 +0000 (22:28 -0400)]
inspector: Add cell areas into the tree

11 years agoinspector: Rename Widget Tree to Objects
Matthias Clasen [Sat, 10 May 2014 02:27:46 +0000 (22:27 -0400)]
inspector: Rename Widget Tree to Objects

11 years agoinspector: Deal with dying objects
Matthias Clasen [Fri, 9 May 2014 02:58:43 +0000 (22:58 -0400)]
inspector: Deal with dying objects

The widget-tree was not safe against object just going away.
Fix this by using row references instead of iters where
necessary, and by using weak refs to clean up when objects
die.

11 years agoTrivial: shorten some variable names
Matthias Clasen [Fri, 9 May 2014 02:19:21 +0000 (22:19 -0400)]
Trivial: shorten some variable names

11 years agoinspector: Add a Label column
Matthias Clasen [Fri, 9 May 2014 01:15:09 +0000 (21:15 -0400)]
inspector: Add a Label column

Move the UI strings over to that column, and use the buildable
ID for the name column, where available.

11 years agoGtkApplication: implement the active-window property
Matthias Clasen [Fri, 9 May 2014 00:30:40 +0000 (20:30 -0400)]
GtkApplication: implement the active-window property

This was apparently just forgotten.
First bug found by GtkInspector.

11 years agoinspector: Show the default GApplication in the tree
Matthias Clasen [Fri, 9 May 2014 00:32:42 +0000 (20:32 -0400)]
inspector: Show the default GApplication in the tree

This is a handy object to have quickly available.

11 years agoinspector: Don't flash the window initially
Matthias Clasen [Fri, 9 May 2014 00:31:50 +0000 (20:31 -0400)]
inspector: Don't flash the window initially

This is flickery, and not really necessary.

11 years agoWork around a GtkBuilder deficiency
Matthias Clasen [Fri, 9 May 2014 00:14:44 +0000 (20:14 -0400)]
Work around a GtkBuilder deficiency

It turns out that an <object> with just a <signal> in it does
not work right in GtkBuilder. Work around by adding a property.

11 years agoinspector: Don't show mapped/realized/visible in the tree
Matthias Clasen [Fri, 9 May 2014 00:13:34 +0000 (20:13 -0400)]
inspector: Don't show mapped/realized/visible in the tree

It does not really add much over the sensitive/insensitive rendering
that is already indicating which widget is mapped. At the same time,
set up signal handlers so we can update that when the widget changes.

11 years agoinspector: Don't leak signal handlers
Matthias Clasen [Thu, 8 May 2014 22:36:38 +0000 (18:36 -0400)]
inspector: Don't leak signal handlers

Not only was the property list connecting to notify::bla for
each property individually, it was also leaking the signal
handlers when the selected object changed. Fix both.

11 years agoinspector: Minimal support for attributes
Matthias Clasen [Thu, 8 May 2014 14:16:58 +0000 (10:16 -0400)]
inspector: Minimal support for attributes

Show mapping information for cell renderer properties; no editing
yet.

11 years agoinspector: Show interfaces in the object hierarchy
Matthias Clasen [Thu, 8 May 2014 05:59:37 +0000 (01:59 -0400)]
inspector: Show interfaces in the object hierarchy

This gives a more complete picture.

11 years agoinspector: Add columns and cell renderers to the tree
Matthias Clasen [Thu, 8 May 2014 05:38:52 +0000 (01:38 -0400)]
inspector: Add columns and cell renderers to the tree

These are interesting objects that are worth displaying in the tree.

11 years agoinspector: Improve handling of object-valued properties
Matthias Clasen [Thu, 8 May 2014 05:26:17 +0000 (01:26 -0400)]
inspector: Improve handling of object-valued properties

When showing the objects in the tree, use the property name
as the name thats shown in the list. This makes it easier
to differentiate e.g. hadjustment and vadjustment in a
GtkScrolledWindow.

11 years agoinspector: Fix object-valued properties
Matthias Clasen [Thu, 8 May 2014 05:17:35 +0000 (01:17 -0400)]
inspector: Fix object-valued properties

The code for dealing with object-valued properties had several
bugs that lead to crashes. This change makes it work.

11 years agoinspector: Change label of widget tree
Matthias Clasen [Thu, 8 May 2014 05:19:05 +0000 (01:19 -0400)]
inspector: Change label of widget tree

The tree contains other objects besides widgets, so label it
'Objects'.

11 years agoinspector: Show signals
Matthias Clasen [Thu, 8 May 2014 05:04:16 +0000 (01:04 -0400)]
inspector: Show signals

Add a tab that shows available signals for each object. For now,
we only show if each signal has handlers connected or now. More
functionality will be added later.

11 years agoinspector: Select a window initially
Matthias Clasen [Wed, 7 May 2014 10:34:23 +0000 (06:34 -0400)]
inspector: Select a window initially

The list of toplevels also includes hidden combobox popups
and the like, so we have to be a little careful. To ensure
the right choice, we now pick the first visible window
that is not a GtkInspectorWindow.

11 years agoinspector: Drop an unused function
Matthias Clasen [Wed, 7 May 2014 04:16:31 +0000 (00:16 -0400)]
inspector: Drop an unused function

11 years agoinspector: Make translatable
Matthias Clasen [Wed, 7 May 2014 04:13:00 +0000 (00:13 -0400)]
inspector: Make translatable

Mark strings in the source and in the templates as translatable.
We use the same extract-strings utility as for libgtk itself.

11 years agoMove modules/other/parasite to modules/inspector
Matthias Clasen [Wed, 7 May 2014 03:35:47 +0000 (23:35 -0400)]
Move modules/other/parasite to modules/inspector

No need for the extra subdirectory, and the name should
match the module name.

11 years agoRename parasite to gtkinspector
Matthias Clasen [Wed, 7 May 2014 03:24:20 +0000 (23:24 -0400)]
Rename parasite to gtkinspector

This avoids namespace collisions with the original
gtkparasite project, and adds the gtk prefix to
all symbols and type names.

11 years agoAdd a 'toggle-debugging' keybinding
Matthias Clasen [Wed, 7 May 2014 02:20:10 +0000 (22:20 -0400)]
Add a 'toggle-debugging' keybinding

This is bound to Ctrl-Shift-I (for inspector) by default.
It loads the gtkparasite module and opens a parasite window.

11 years agoAdd private api to load a single module
Matthias Clasen [Wed, 7 May 2014 02:19:12 +0000 (22:19 -0400)]
Add private api to load a single module

In the following commits, this function will be used to load the
gtkparasite module.

11 years agoparasite: Don't open a window upon load
Matthias Clasen [Wed, 7 May 2014 02:02:08 +0000 (22:02 -0400)]
parasite: Don't open a window upon load

Instead, we want to let GTK+ open a window whose life-cycle
it can control. We just ensure that all our types are registered
when the module is loaded, so GTK+ can find them.

11 years agoparasite: Two fixes for the property cell renderer
Matthias Clasen [Tue, 6 May 2014 13:43:12 +0000 (09:43 -0400)]
parasite: Two fixes for the property cell renderer

11 years agoparasite: Some formatting cleanup
Matthias Clasen [Mon, 5 May 2014 04:06:07 +0000 (00:06 -0400)]
parasite: Some formatting cleanup

11 years agoparasite: Include file cleanup
Matthias Clasen [Mon, 5 May 2014 03:49:28 +0000 (23:49 -0400)]
parasite: Include file cleanup

11 years agoparasite: Use a template for window
Matthias Clasen [Mon, 5 May 2014 03:47:11 +0000 (23:47 -0400)]
parasite: Use a template for window

11 years agoparasite: some formatting tweaks
Matthias Clasen [Mon, 5 May 2014 02:21:55 +0000 (22:21 -0400)]
parasite: some formatting tweaks

11 years agoparasite: Use a template for themes
Matthias Clasen [Mon, 5 May 2014 02:09:38 +0000 (22:09 -0400)]
parasite: Use a template for themes

11 years agoparasite: Use a template for prop list
Matthias Clasen [Mon, 5 May 2014 01:08:36 +0000 (21:08 -0400)]
parasite: Use a template for prop list

11 years agoparasite: Use template for widget tree
Matthias Clasen [Sun, 4 May 2014 23:53:04 +0000 (19:53 -0400)]
parasite: Use template for widget tree

11 years agoparasite: Use template for classes list
Matthias Clasen [Sun, 4 May 2014 21:40:02 +0000 (17:40 -0400)]
parasite: Use template for classes list

11 years agoparasite: Use template for css editor
Matthias Clasen [Sun, 4 May 2014 18:53:17 +0000 (14:53 -0400)]
parasite: Use template for css editor

11 years agoparasite: Use template for object hierarchy
Matthias Clasen [Sun, 4 May 2014 16:06:06 +0000 (12:06 -0400)]
parasite: Use template for object hierarchy

11 years agoparasite: Use template for button path
Matthias Clasen [Sun, 4 May 2014 15:09:52 +0000 (11:09 -0400)]
parasite: Use template for button path

11 years agoparasite: Allow panes to shrink
Matthias Clasen [Sun, 4 May 2014 15:10:23 +0000 (11:10 -0400)]
parasite: Allow panes to shrink

The notebook is too wide.

11 years agoparasite: Use the right icon name for inspect
Matthias Clasen [Sun, 4 May 2014 13:27:41 +0000 (09:27 -0400)]
parasite: Use the right icon name for inspect

11 years agoparasite: Don't show hicolor as an icon theme
Matthias Clasen [Sun, 4 May 2014 13:27:17 +0000 (09:27 -0400)]
parasite: Don't show hicolor as an icon theme

It really isn't.

11 years agoparasite: Don't show key themes
Matthias Clasen [Sun, 4 May 2014 13:13:42 +0000 (09:13 -0400)]
parasite: Don't show key themes

But show the builtin theme, even if it doesn't show up in the
filesystem.

11 years agoparasite: Turn the inspect button back into an image button
Matthias Clasen [Sun, 4 May 2014 13:12:58 +0000 (09:12 -0400)]
parasite: Turn the inspect button back into an image button

11 years agoparasite: Make flashing work better
Matthias Clasen [Sat, 3 May 2014 20:43:04 +0000 (16:43 -0400)]
parasite: Make flashing work better

The positioning of the highlight window was not reliable; instead
just use a after-handler for the draw signal, in the same way that
drag highlights are drawn by GTK+ itself.

And copy the code for grabbing a widget via pointer from testgtk;
that code is known to work.

11 years agoparasite: Drop an unused field
Matthias Clasen [Sat, 3 May 2014 20:00:28 +0000 (16:00 -0400)]
parasite: Drop an unused field

11 years agoparasite: Make child properties insensitive when empty
Matthias Clasen [Sat, 3 May 2014 19:57:16 +0000 (15:57 -0400)]
parasite: Make child properties insensitive when empty

When the selected object is not a widget, make the child property
list insensitive.

11 years agoparasite: Display child properties too
Matthias Clasen [Sat, 3 May 2014 19:25:43 +0000 (15:25 -0400)]
parasite: Display child properties too

11 years agoparasite: Use a window group
Matthias Clasen [Sat, 3 May 2014 17:21:41 +0000 (13:21 -0400)]
parasite: Use a window group

By putting the parasite window in a separate group, we can interact
with it even when there is a modal dialog blocking the application
window

11 years agoInitial import
Matthias Clasen [Sat, 3 May 2014 01:48:33 +0000 (21:48 -0400)]
Initial import

This is a copy of https://github.com/chipx86/gtkparasite.git
with minimal edits to make it build.

11 years agocss: Add forgotten files
Benjamin Otte [Sun, 11 May 2014 02:00:55 +0000 (04:00 +0200)]
css: Add forgotten files

Forgot to add those files in 3a72e2fb2483d4dd26eb74319613ffb505d89128

11 years agocss: Implement "all" shorthand
Benjamin Otte [Sun, 11 May 2014 01:22:06 +0000 (03:22 +0200)]
css: Implement "all" shorthand

Here's the spec:
  http://dev.w3.org/csswg/css-cascade/#all-shorthand

Also use it in the reset-to-defaults CSS where a bunch of properties had
been missing.

11 years agocss: Implement "unset"
Benjamin Otte [Sun, 11 May 2014 01:08:40 +0000 (03:08 +0200)]
css: Implement "unset"

Quoting the spec:
  If the cascaded value of a property is the unset keyword,
  then if it is an inherited property, this is treated as
  inherit, and if it is not, this is treated as initial.

Spec in question:
  http://dev.w3.org/csswg/css-cascade/

Also use unset in the reset-to-defaults.css we use to reset css in
reftests.

11 years agoreftests: Create the surface after running the main loop
Benjamin Otte [Sat, 10 May 2014 15:20:11 +0000 (17:20 +0200)]
reftests: Create the surface after running the main loop

Running the main loop may cause resizes, so creating the surface based
on the size before running it seems wrong.

11 years agoiconhelper: Simplify code
Benjamin Otte [Thu, 8 May 2014 16:42:35 +0000 (18:42 +0200)]
iconhelper: Simplify code

In the GTK_IMAGE_ICON_NAME case, instead of keeping around the icon_name,
create a GThemedIcon and use that. This way, we can reuse the code paths
for the GTK_IMAGE_GICON case.

11 years agowin32embed: Set the visible flag and avoid recursion
Emmanuele Bassi [Mon, 24 Mar 2014 20:51:42 +0000 (20:51 +0000)]
win32embed: Set the visible flag and avoid recursion

We have to use the internal accessor to the visible flag, instead of
calling gtk_widget_set_visible(), from within the show() and hide()
implementations - otherwise we'll recurse.

https://bugzilla.gnome.org/show_bug.cgi?id=721069

11 years agoUpdated Spanish translation
Daniel Mustieles [Sat, 10 May 2014 17:53:22 +0000 (19:53 +0200)]
Updated Spanish translation

11 years agoUpdated Spanish translation
Daniel Mustieles [Sat, 10 May 2014 17:53:04 +0000 (19:53 +0200)]
Updated Spanish translation

11 years agoGtkWindow: small cleanup
Matthias Clasen [Fri, 9 May 2014 21:13:53 +0000 (17:13 -0400)]
GtkWindow: small cleanup

The window type is a construct-only property, so we should
pass it to g_object_new, not set it after the fact in the
constructor.

11 years agowidget: deprecate focus-line-width style property
Cosimo Cecchi [Sun, 4 May 2014 18:46:42 +0000 (20:46 +0200)]
widget: deprecate focus-line-width style property

Nothing in GTK uses it anymore.

11 years agoflowbox: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:42:13 +0000 (20:42 +0200)]
flowbox: don't use focus-line-width

11 years agolistbox: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:42:04 +0000 (20:42 +0200)]
listbox: don't use focus-line-width

11 years agocolorscale: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:41:41 +0000 (20:41 +0200)]
colorscale: don't use focus-line-width

11 years agomodelbutton: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:38:24 +0000 (20:38 +0200)]
modelbutton: don't use focus-line-width

11 years agorange: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:35:01 +0000 (20:35 +0200)]
range: don't use focus-line-width

11 years agoexpander: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:26:55 +0000 (20:26 +0200)]
expander: don't use focus-line-width

11 years agonotebook: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:23:09 +0000 (20:23 +0200)]
notebook: don't use focus-line-width

11 years agospinbutton: remove unused code
Cosimo Cecchi [Sun, 4 May 2014 18:20:19 +0000 (20:20 +0200)]
spinbutton: remove unused code

11 years agoentry: remove unused code
Cosimo Cecchi [Sun, 4 May 2014 18:19:48 +0000 (20:19 +0200)]
entry: remove unused code

11 years agoswitch: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:16:13 +0000 (20:16 +0200)]
switch: don't use focus-line-width

11 years agoradiobutton: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:12:37 +0000 (20:12 +0200)]
radiobutton: don't use focus-line-width

11 years agocheckbutton: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:08:34 +0000 (20:08 +0200)]
checkbutton: don't use focus-line-width

11 years agocellarea: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 18:01:12 +0000 (20:01 +0200)]
cellarea: don't use focus-line-width

Use CSS padding instead.

11 years agotreeview: use the CELL style class while doing cell size request
Cosimo Cecchi [Sun, 4 May 2014 18:00:16 +0000 (20:00 +0200)]
treeview: use the CELL style class while doing cell size request

Since we use the same style class later when we draw them. Otherwise
we'll get inconsistent results for CSS borders/paddings between the two
cycles.

11 years agocalendar: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 17:07:15 +0000 (19:07 +0200)]
calendar: don't use focus-line-width

11 years agobutton: don't use focus-line-width
Cosimo Cecchi [Sun, 4 May 2014 16:51:53 +0000 (18:51 +0200)]
button: don't use focus-line-width

11 years agobutton: remove unused code
Cosimo Cecchi [Sun, 4 May 2014 16:51:42 +0000 (18:51 +0200)]
button: remove unused code

11 years agowidget: deprecate focus-line-pattern style property
Cosimo Cecchi [Sun, 4 May 2014 16:46:11 +0000 (18:46 +0200)]
widget: deprecate focus-line-pattern style property

Nothing in GTK uses it.

11 years agowidget: deprecate focus-padding style property
Cosimo Cecchi [Sun, 4 May 2014 16:44:00 +0000 (18:44 +0200)]
widget: deprecate focus-padding style property

There's no use left inside GTK.

11 years agocalendar: simplify code
Cosimo Cecchi [Sun, 4 May 2014 16:41:00 +0000 (18:41 +0200)]
calendar: simplify code

Always use the newly introduced get_component_paddings() instead of
doing the work manually every time.

11 years agocalendar: use CSS paddings instead of focus pad for day/week areas
Cosimo Cecchi [Sun, 4 May 2014 16:34:11 +0000 (18:34 +0200)]
calendar: use CSS paddings instead of focus pad for day/week areas

focus-padding is going away.

11 years agorange: remove unused code
Cosimo Cecchi [Sun, 4 May 2014 15:26:57 +0000 (17:26 +0200)]
range: remove unused code

11 years agocolorscale: don't use focus padding
Cosimo Cecchi [Sun, 4 May 2014 15:16:03 +0000 (17:16 +0200)]
colorscale: don't use focus padding

11 years agorange: don't use focus padding
Cosimo Cecchi [Sun, 4 May 2014 15:14:52 +0000 (17:14 +0200)]
range: don't use focus padding